#ifndef __PALYER_BUFF_H__
#define __PALYER_BUFF_H__

class PacketDecoder;
class PlayerTitle;

class PlayerBuff:public PlayerTitle
{

public:
	PlayerBuff(PlayerId stPlayerId);
	virtual ~PlayerBuff();

	bool addBuff(Int32 csv_id,Int32 tRetentionTime);
	void removeBuff(Int32 csv_id);
	UInt32 getBuffSize();
	bool hasBuff(Int32 csv_id);
	void decodeBuffs();
	void encodeBuffs();
	void sendBuffs();
	void updateBuffs();
	//void sendBuffUpdate(Int32 char_id,Int32 state = BuffInfo::FRIEND_STATE_ONLINE);
	//void popOneTmpBuff();

	BuffInfo* getBuffInfo(Int32 csv_id);
private:
	std::map<Int32,BuffInfo>	m_arBuffs;

};
#pragma pack()
#endif